package com.alibaba.dubbo.demo;

import java.util.List;

import com.alibaba.dubbo.demo.bean.PageBean; 
import com.alibaba.dubbo.demo.bean.SysBackuppolicy;

public interface SysBackuppolicyInterface {

	/**
	 * 保存备份策略
	 */
	public boolean saveBackupPolicy(SysBackuppolicy policy);	
	
	/**
	 * 更新备份策略
	 */
	public boolean updateBackupPolicy(SysBackuppolicy policy);
	/**
	 * 删除备份策略
	 */
	public boolean deleteBackupPolicy(SysBackuppolicy policy);
	/**
	 * 删除无效备份策略
	 */
	public boolean deleteUnvalidBackupPolicy();
	/**
	 * 获取备份策略
	 */
	public PageBean queryAllBackupPolicy(PageBean pageBean,boolean valid);
	public List<SysBackuppolicy> queryAllBackupPolicyList(boolean valid);
	public SysBackuppolicy queryOneBackupPolicy(int id);
}
